package com.leecode;

import com.leecode.xiehf.page_02.Solution_0082;

import java.util.Arrays;
import java.util.List;


public class Printer {

    public static void printInt(List<Integer> list) {
        for (Integer integer : list) {
            System.out.print(integer + ",");
        }
    }

    public static void printIntList(List<List<Integer>> list) {
        for (List<Integer> integer : list) {
            printInt(integer);
            System.out.println();
        }
    }

    public static void print(List<String> list) {
        for (String integer : list) {
            System.out.println(integer + ",");
        }
    }

    public static void printList(List<List<String>> list) {
        for (List<String> integer : list) {
            print(integer);
            System.out.println();
        }
    }

    public static void print(int a) {
        System.out.println(a);
    }

    public static void print(int[] arr) {
        System.out.println(Arrays.toString(arr));
    }

    public static void print(int[][] arr) {
        System.out.println(Arrays.deepToString(arr));
    }

    public static void print(String s) {
        System.out.println(s);
    }

    public static void print(String[] arr) {
        System.out.println(Arrays.toString(arr));
    }

    public static void print(String[][] arr) {
        System.out.println(Arrays.deepToString(arr));
    }

    public static void print(boolean b) {
        System.out.println(b);
    }

}
